---
title: 'TypeScript SDK'
description: 'Register tools with the TypeScript SDK'
icon: 'js'
---

import RegisterNode from '/snippets/node-register.mdx';

The TypeScript SDK provides a simple way to register functions as tools for AI agents.

## Installation

```bash
npm install agentrpc
```

## Basic Usage

<RegisterNode />

## MCP Server

The TypeScript SDK includes an MCP (Model Context Protocol) server that can be started using:

```bash
AGENTRPC_API_SECRET <YOUR_API_SECRET> npx agentrpc mcp
```

For more details, visit the [TypeScript SDK GitHub repository](https://github.com/agentrpc/agentrpc/tree/main/sdk-node).
